package com.kssoft.ebd.spider.common.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 *  爬虫配置
 * @author liwu
 * @since 2025/6/19
 */
@Configuration
@Data
public class SpiderConfig {

    public static final String START_BROADCAST_COOKIE_FILE_PATH = "startBroadcastCookies.ser";
    public static final String HOME_COOKIE_FILE_PATH = "homeCookies.ser";

    public static final String CLOSE_BROADCAST_COOKIE_FILE_PATH = "closeBroadcastCookies.ser";

    @Value("${spider.chromeDriverPath}")
    private String chromeDriverPath;
    @Value("${spider.chromePath}")
    private String chromePath;
    @Value("${spider.driver}")
    private String driver;

    @Value("${spider.headless}")
    private boolean headless;


    @Value("${spider.username}")
    private String username;

    @Value("${spider.password}")
    private String password;

    @Value("${spider.homePageUrl}")
    private String homePageUrl;
    @Value("${spider.loginPageUrl}")
    private String loginPageUrl;

    @Value("${spider.startBroadcastHomePageUrl}")
    private String startBroadcastHomePageUrl;
    @Value("${spider.closeBroadcastHomePageUrl}")
    private String closeBroadcastHomePageUrl;



    @Value("${spider.queryDayScheduleActionUrl}")
    private String queryDayScheduleActionUrl;
    @Value("${spider.queryAreaDeviceUrl}")
    private String queryAreaDeviceUrl;
    @Value("${spider.queryAudioFileUrl}")
    private String queryAudioFileUrl;
    @Value("${spider.queryCallRecordAjaxUrl}")
    private String queryCallRecordAjaxUrl;


    @Value("${spider.issueLiveStreamUrl}")
    private String issueLiveStreamUrl;
    @Value("${spider.stopIssueAudioFileUrl}")
    private String stopIssueAudioFileUrl;
    @Value("${spider.stopListenCallRecordUrl}")
    private String stopListenCallRecordUrl;
    @Value("${spider.startCallUrl}")
    private String startCallUrl;
    @Value("${spider.stopCallUrl}")
    private String stopCallUrl;
}
